package com.deer.wms.ASN.manage.model.in;

import com.deer.wms.ASN.manage.model.asn.AsnDetail;
import lombok.Data;

@Data
public class PurInDetailBack {
    private Double arriveQtyTU;
    private Double eyeballingQtyTU;
    private Double rcvQtyTU;
    private Double finallyPriceTC;
    private String srcDocNo;
    private Integer srcDocLineNo;
    private Integer srcDocSubLineNo;
    private String tradeBaseUom;
    private String tradeUom;
    private String whCode;
    private String kgCode;

    public PurInDetailBack(AsnDetail asnDetail, Double qty) {
        this.arriveQtyTU = qty;
        this.eyeballingQtyTU = qty;
        this.rcvQtyTU = qty;
        this.srcDocNo = asnDetail.getBillNo();
        this.srcDocLineNo = asnDetail.getErpLineNo();
        this.srcDocSubLineNo = asnDetail.getShipLineNo();
        this.tradeBaseUom = asnDetail.getUnitName();
        this.tradeUom = asnDetail.getUnitName();
        this.finallyPriceTC = 1.0;
    }
}
